class Admin::CatelogController < Admin::AdminBaseController

  def list
  @c=Catelog.find(:all)
  end

  def delete
  if(Catelog.delete(params[:id]))then flash[:notice]="you have deleted one swarm succesly!" end
  redirect_to :action=>"list"
  end

  def add

  if(Catelog.new(params[:catelog]).save)
  flash[:notice]="you have added one catelog successly!"
  redirect_to :action=>"list"
  end

  end
end
